//定义医院列表相关的接口

export interface IbookRule {
  cycle: number
  releaseTime: string
  stopTime: string
  quitDay: number
  quitTime: string
  rule: string[]
}
export interface IhospitalListItem {
  id: string
  createTime: string
  updateTime: string
  isDeleted: number
  param: {
    hostypeString: string
    fullAddress: string
  }
  hoscode: string
  hosname: string
  hostype: string
  provinceCode: string
  cityCode: string
  districtCode: string
  address: string
  logoData: string
  intro: string
  status: number
  route?: string
  bookingRule: IbookRule
}

export type IhospitalList = IhospitalListItem[]

export interface IhospitalListRes {
  content: IhospitalList
  totalElements: number
}

export type Status = 0 | 1 // 字面量类型
// 获取医院列表数据参数的接口
export interface IhospitalListParams {
  page: number
  pageSize: number
  hosname?: string
  hoscode?: string
  hostype?: string
  provinceCode?: string
  cityCode?: string
  districtCode?: string
  status?: Status
}

// 省数据接口
export interface IprovinceItem {
  id: number
  createTime: string
  updateTime: string
  isDeleted: number
  name: string
  value: string
}

export type IprovinceList = IprovinceItem[]
// 查看医院详情的接口
export interface IhospitalShow {
  bookingRule?: IbookRule
  hospital?: IhospitalListItem
}

// 科室数据的接口
export type IdepList = Idepartment[]
export interface Idepartment {
  depcode: string
  depname: string
  children: IdepList
  disabled: boolean
}

// 排班规则对象接口
export interface IScheduleRuleItem {
  workDate: string
  dayOfWeek: string
  reservedNumber: number
  availableNumber: number
}
export type IScheduleRuleList = IScheduleRuleItem[]

export interface IScheduleRuleRes {
  total: number
  bookingScheduleList: IScheduleRuleList
  baseMap: {
    hosname: string
  }
}
export interface IscheduleItem {
  id: string
  title: string
  skill: string
  workDate: string
  reservedNumber: number
  availableNumber: number
  amount: number
}

export type IscheduleList = IscheduleItem[]
